package ru.monyag.android.vibralarm.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TimePicker;

import static ru.monyag.android.vibralarm.R.id.button_ok;
import static ru.monyag.android.vibralarm.R.id.alarm_time_picker;
import static ru.monyag.android.vibralarm.R.layout.edit_alarm_layout;

/**
 * @author Vyacheslav Kovalyov
 * @version 1.0
 */
public class EditAlarmActivity extends Activity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(edit_alarm_layout);

        final TimePicker tp = (TimePicker)findViewById(alarm_time_picker);
        tp.setIs24HourView(true);

        findViewById(button_ok).setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {

                int h = tp.getCurrentHour();
                int m = tp.getCurrentMinute();

                int debug = 0;
            }
        });
    }
}